#include "kfunc.h"
#include "biscuit.h"

#define TIME_SLICE 100000

void
timer_intrhdlr () {
    unsigned int time;
    time = ll_r_mtime();
    time += 100000;
    ll_w_mtimecmp (time);
    sched ();
}

void
psudo_intrhdlr (char *msg) {
    printk (msg);
    exit ();
}

void
missing_x_hdlr () {
    printk ("Warning: buffer overflow detected.\n");
    exit ();
}

void
illinst_hdlr () {
    printk ("Warning: privilege instruction detected.\n");
    exit ();
}
